//设计器底色
flstyle.bgcolor="#ffffff";

//默认边框颜色
flstyle.elem.defaultStrokeWidth=1;
flstyle.elem.defaultStroke="#666666";
flstyle.elem.defaultActivityIconColor="#000000";
flstyle.elem.defaultFontColor="#6901d1";
flstyle.elem.defaultActivityIconShow="1";
flstyle.elem.defaultGateWayIconColor="#ffffff";
flstyle.elem.defaultFontSize="16px";

//开始事件 风格
flstyle.elem.attrs.start = {strokeWidth:flstyle.elem.defaultStrokeWidth, stroke: flstyle.elem.defaultStroke, fill:"url(#svgGradientStart)"};
//结束事件 风格
flstyle.elem.attrs.end = {strokeWidth:flstyle.elem.defaultStrokeWidth, stroke: flstyle.elem.defaultStroke, fill:"url(#svgGradientEnd)"};

//任务 风格
flstyle.elem.attrs.task = {strokeWidth:flstyle.elem.defaultStrokeWidth, stroke: flstyle.elem.defaultStroke, fill:"url(#svgGradientTask)"};
//人工任务 风格
flstyle.elem.attrs.usertask = {strokeWidth:flstyle.elem.defaultStrokeWidth, stroke: flstyle.elem.defaultStroke, fill:"url(#svgGradientTask)"};
//手工任务 风格
flstyle.elem.attrs.manualtask = {strokeWidth:flstyle.elem.defaultStrokeWidth, stroke: flstyle.elem.defaultStroke, fill:"url(#svgGradientTask)"};
//服务任务 风格
flstyle.elem.attrs.servicetask = {strokeWidth:flstyle.elem.defaultStrokeWidth, stroke: flstyle.elem.defaultStroke, fill:"url(#svgGradientTask)"};
//发送任务 风格
flstyle.elem.attrs.sendtask = {strokeWidth:flstyle.elem.defaultStrokeWidth, stroke: flstyle.elem.defaultStroke, fill:"url(#svgGradientTask)"};
//接收任务 风格
flstyle.elem.attrs.receivetask = {strokeWidth:flstyle.elem.defaultStrokeWidth, stroke: flstyle.elem.defaultStroke, fill:"url(#svgGradientTask)"};
//脚本任务 风格
flstyle.elem.attrs.scripttask = {strokeWidth:flstyle.elem.defaultStrokeWidth, stroke: flstyle.elem.defaultStroke, fill:"url(#svgGradientTask)"};
//规则任务 风格
flstyle.elem.attrs.ruletask = {strokeWidth:flstyle.elem.defaultStrokeWidth, stroke: flstyle.elem.defaultStroke, fill:"url(#svgGradientTask)"};

//相容网关 风格
flstyle.elem.attrs.inclusivegateway = {strokeWidth:flstyle.elem.defaultStrokeWidth, stroke: flstyle.elem.defaultStroke, fill:"url(#svgGradientGateway)"};
//相容网关图标 风格
flstyle.elem.attrs.inclusivegateway_innerico = {strokeWidth:3, stroke: flstyle.elem.defaultStroke, fill:"none"};
//互斥网关 风格
flstyle.elem.attrs.exclusivegateway = {strokeWidth:flstyle.elem.defaultStrokeWidth, stroke: flstyle.elem.defaultStroke, fill:"url(#svgGradientGateway)"};
//互斥网关图标 风格
flstyle.elem.attrs.exclusivegateway_innerico = {strokeWidth:flstyle.elem.defaultStrokeWidth, stroke: flstyle.elem.defaultStroke, fill:"#2d4ceb"};
//平行网关 风格
flstyle.elem.attrs.parallelgateway = {strokeWidth:flstyle.elem.defaultStrokeWidth, stroke: flstyle.elem.defaultStroke, fill:"url(#svgGradientGateway)"};
//平行网关图标 风格
flstyle.elem.attrs.parallelgateway_innerico = {strokeWidth:flstyle.elem.defaultStrokeWidth, stroke: flstyle.elem.defaultStroke, fill:"#2d4ceb"};
//子流程 风格
flstyle.elem.attrs.subprocess = {strokeWidth:flstyle.elem.defaultStrokeWidth, stroke: flstyle.elem.defaultStroke, fill:"#a663a6", "opacity":0.8};

//文本注释风格
flstyle.elem.attrs.textannotation = {strokeWidth:flstyle.elem.defaultStrokeWidth, stroke: "#9fb3a0", fill:"none","opacity":0.8};

//泳道 风格
flstyle.elem.attrs.participant = {strokeWidth:1, stroke: "#aaaaaa", fill:"#bcf5d2", "opacity":0.6};
//泳道内部线风格
flstyle.elem.attrs.participant_innerline = {strokeWidth:1, stroke: "#e0e3e7"};
//泳道标题栏风格
flstyle.elem.attrs.participantlabelrect = {strokeWidth:1, stroke: "#99f0bd", fill: "#268e51", "opacity":1};
//泳道标题栏字体风格
flstyle.elem.attrs.participantlabel = {"style":{"fontWeight":"bold"}};

//泳道 风格
flstyle.elem.attrs.lane = {strokeWidth:flstyle.elem.defaultStrokeWidth, stroke: "#aaaaaa", fill:"#bcf5d2", "opacity":0.6};
//泳道内部线风格
flstyle.elem.attrs.lane_innerline = {strokeWidth:flstyle.elem.defaultStrokeWidth, stroke: "#e0e3e7"};
//泳道标题栏风格
flstyle.elem.attrs.lanelabelrect = {strokeWidth:flstyle.elem.defaultStrokeWidth, stroke: "#99f0bd", fill: "#268e51", "opacity":1, "class":"lane-labelrect"};

//泳道标题栏字体风格
flstyle.elem.attrs.lanelabel = {"style":{"fontWeight":"bold"}};

//泳道分组风格
flstyle.elem.attrs.participantgroup = {strokeWidth:1, stroke: "#99f0bd", fill: "#36c66f", "opacity":0.8};
//泳道分组标题字体风格
flstyle.elem.attrs.participantgrouplabel = {"style":{"fontWeight":"bold"}};

//里程碑风格
flstyle.elem.attrs.milestone = {strokeWidth:1, stroke: "#9bf0b9", fill:"#268e51", "opacity":1};
//里程碑分割线风格
flstyle.elem.attrs.milestone_splitline = {strokeWidth:1, stroke: "#aaaaaa", "class": "milestone-splitline"};//c1b81a
//里程碑标题字体风格
flstyle.elem.attrs.milestone_label = {"style":{"fontWeight":"bold"}};

//里程碑分组风格
flstyle.elem.attrs.milestonegroup = {strokeWidth:1, stroke: "#99f0bd", fill:"#36c66f", "opacity":1};
//里程碑分组标题字体风格
flstyle.elem.attrs.milestonegroup_label = {"style":{"fontWeight":"bold"}};

//里程碑栏风格
flstyle.elem.attrs.milestonelane = {strokeWidth:1, stroke: "#a3a8a9", fill:"#7be1a2"};//
//里程碑栏内部竖线
flstyle.elem.attrs.milestonelane_innerline = {strokeWidth:1, stroke: "#e5dc44"};
//里程碑栏时间线风格
flstyle.elem.attrs.milestonelane_timesplitline = {strokeWidth:1, stroke: "#000000", "class": "milestone-time-splitline"};
//里程碑栏时间线字体风格
flstyle.elem.attrs.milestonelane_timesplitlinetag = {fill: "#ffffff", "class": "milestone-time-splitlinetag", "style":"font-size:8px;"};
//流程线的风格
flstyle.elem.attrs.flow = {strokeWidth:2,stroke:"#7ea68e"};
flstyle.elem.attrs.flowMarkerEnd = {path:"M 1 5 L 11 10 L 1 15 Z", ref:{ x: 11, y: 10 }, scale:0.5, attrs : {fill:flstyle.elem.attrs.flow.stroke}};

//字体颜色
flstyle.elem.fontColor = {
		"StartEvent" : flstyle.elem.defaultFontColor,
		"EndEvent" : flstyle.elem.defaultFontColor,
		"ExclusiveGateway" : flstyle.elem.defaultFontColor,
		"InclusiveGateway" : flstyle.elem.defaultFontColor,
		"ParallelGateway" : flstyle.elem.defaultFontColor,
		"UserTask" : "#000000",
		"ServiceTask" : "#000000",
		"ReceiveTask" : "#000000",
		"SendTask" : "#000000",
		"SubProcess" : flstyle.elem.defaultFontColor,
		"SubProcessCollapsed" : flstyle.elem.defaultFontColor,
		"TextAnnotation" : flstyle.elem.defaultFontColor,
		"SequenceFlow" : flstyle.elem.defaultFontColor,
		"MessageFlow" : flstyle.elem.defaultFontColor,
		"Participant" : flstyle.elem.defaultFontColor,
		"Lane" : flstyle.elem.defaultFontColor,
		"ParticipantGroup" : flstyle.elem.defaultFontColor,
		"MileStone" : flstyle.elem.defaultFontColor,
		"MileStoneGroup" : flstyle.elem.defaultFontColor
};

//特效
flfilters.effects = {
	"svgFilterShadow" : function(){return Snap.filter.shadow(0, 2, 3);},	//阴影
	"svgFilterBlur" : function(){return Snap.filter.blur();}	//高斯模糊 使用默认的2像素模糊
};

//渐变颜色定义
flstyle.elem.gradients = {
	"StartEvent" : {
		"a" : "#5ade64",
		"b" : "#5ade64",
		"c" : "#5ade64"
	},
	"EndEvent" : {
		"a" : "#feae69",
		"b" : "#feae69",
		"c" : "#feae69"
	},
	"Task" : {
		"a" : "#50bbc1",
		"b" : "#50bbc1",
		"c" : "#50bbc1"
	},
	"ServiceTask" : {
		"a" : "#6080cd",
		"b" : "#6080cd",
		"c" : "#6080cd"
	},
	"Gateway" : {
		"a" : "#1f487c",
		"b" : "#64d0fe"
	}
};

//渐变
flfilters.gradients = {
	//"svgGradientStart" : "r(0.5, 0.5, 0.5)#fff-#77d977",
	"svgGradientStart" : "L(0, 0, 30, 30)"+flstyle.elem.gradients.StartEvent.a+"-"+flstyle.elem.gradients.StartEvent.b+":25-"+flstyle.elem.gradients.StartEvent.c,	//开始事件默认渐变
	//"svgGradientEnd" : "r(0.5, 0.5, 0.9)#fff-#ef1616",
	"svgGradientEnd" : "L(0, 0, 30, 30)"+flstyle.elem.gradients.EndEvent.a+"-"+flstyle.elem.gradients.EndEvent.b+":25-"+flstyle.elem.gradients.EndEvent.c,	//结束事件默认渐变
	"svgGradientTask" : "L(0, 0, 100, 100)"+flstyle.elem.gradients.Task.a+"-"+flstyle.elem.gradients.Task.b+":25-"+flstyle.elem.gradients.Task.c,	//任务默认渐变
	"svgGradientGateway" : "r(0.5, 0.5, 0.5)"+flstyle.elem.gradients.Gateway.a+"-"+flstyle.elem.gradients.Gateway.b	//网关默认渐变
};

//字体颜色
flstyle.elem.fontColor = {
		"StartEvent" : flstyle.elem.defaultFontColor,
		"EndEvent" : flstyle.elem.defaultFontColor,
		"ExclusiveGateway" : flstyle.elem.defaultFontColor,
		"InclusiveGateway" : flstyle.elem.defaultFontColor,
		"ParallelGateway" : flstyle.elem.defaultFontColor,
		"UserTask" : flstyle.elem.defaultFontColor,
		"ServiceTask" : flstyle.elem.defaultFontColor,
		"ReceiveTask" : flstyle.elem.defaultFontColor,
		"SendTask" : flstyle.elem.defaultFontColor,
		"SubProcess" : flstyle.elem.defaultFontColor,
		"SubProcessCollapsed" : flstyle.elem.defaultFontColor,
		"TextAnnotation" : flstyle.elem.defaultFontColor,
		"SequenceFlow" : flstyle.elem.defaultFontColor,
		"MessageFlow" : flstyle.elem.defaultFontColor,
		"Participant" : flstyle.elem.defaultFontColor,
		"Lane" : flstyle.elem.defaultFontColor,
		"ParticipantGroup" : flstyle.elem.defaultFontColor,
		"MileStone" : flstyle.elem.defaultFontColor,
		"MileStoneGroup" : flstyle.elem.defaultFontColor
};

